<?php

/**
 * profile components.
 *
 * @package    docplus.co.za
 * @subpackage profile
 * @author     Fox Matuku
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class profileComponents extends sfComponents
{

    public function executeRightBlock(sfWebRequest $request)
    {
        if ($this->getUser()->isAuthenticated())
        {
            $this->user = $this->getUser()->getDpUser();
            $this->activeDoctors = DoctorTable::getInstance()->retrieveForConnections();
            $this->healthConsciencePoints = ActivityLogTable::getInstance()->getHealthConsciencePoints($this->user->getId());
        }
        else{
            $this->activeDoctors = array();
        }
    }

}